#!/usr/bin/env python

import json

from tornado import httpclient

cli = httpclient.HTTPClient()
res = cli.fetch('https://api.upbit.com/v1/market/all')
message = json.loads(res.body)

product_infos = {}
for item in message:
  symbol = item['market']
  quote, base = symbol.split('-')
  if quote == 'KRW':
    print("  '%s'," % base)
